scoreboard players random temp temp 1 20
scoreboard players random temp2 temp 1 19
execute if score temp2 temp >= temp temp run scoreboard players add temp2 temp 1 
execute if score temp temp matches 1 positioned -12157 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 1 positioned -12157 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 2 positioned -12156 67 12513 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 2 positioned -12156 67 12513 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 3 positioned -12155 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 3 positioned -12155 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 4 positioned -12156 67 12511 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 4 positioned -12156 67 12511 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 5 positioned -12156 68 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 5 positioned -12156 68 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 6 positioned -12130 68 12463 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 6 positioned -12130 68 12463 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 7 positioned -12194 83 12562 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 7 positioned -12194 83 12562 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 8 positioned -12118 75 12543 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 8 positioned -12118 75 12543 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 9 positioned -12194 66 12470 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 9 positioned -12194 66 12470 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 10 positioned -12172 74 12547 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 10 positioned -12172 74 12547 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 11 positioned -12198 65 12527 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 11 positioned -12198 65 12527 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 12 positioned -12112 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 12 positioned -12112 67 12512 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 13 positioned -12153 67 12569 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 13 positioned -12153 67 12569 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 14 positioned -12156 76 12456 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 14 positioned -12156 76 12456 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 15 positioned -12148 76 12493 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 15 positioned -12148 76 12493 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 16 positioned -12129 66 12498 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 16 positioned -12129 66 12498 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 17 positioned -12190 60 12483 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 17 positioned -12190 60 12483 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 18 positioned -12199 68 12497 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 18 positioned -12199 68 12497 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 19 positioned -12143 76 12530 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 19 positioned -12143 76 12530 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp temp matches 20 positioned -12156 79 12502 run function battle/chestLoot/requestLoot/UpdateItems
execute if score temp2 temp matches 20 positioned -12156 79 12502 run function battle/chestLoot/requestLoot/UpdateItems